﻿#include <string>
#include "CLinkTree.h"
#include <iostream>
using namespace std;

int main()
{
    string str = "A(B(E,F(G,H)),C(D,E))";
    cLinkTree tree = cLinkTree(str);
    tree.displayTree();
    cout << endl;
    tree.recursivePreorderTraversal();
    cout << endl;
    tree.noRecursivePreorderTraversal();
    cout << endl;
    cout << tree.getWidth();
}

